how to create ap invoice using rest api